/*eslint-disable*/
import "url-search-params-polyfill";//让urlsearchparams兼容IE
import "whatwg-fetch";//让fetch兼容ie8+浏览器
import Vue from 'vue';
import App from './App.vue';
//导入配置好的路由
import router from "./router";
import Axios from "axios";
import config from "./assets/js/conf/config";
import {request} from "./assets/js/utils/http";
import store from "./store";
import utils from "./assets/js/utils";

Vue.prototype.$axios=Axios.create({
  baseURL:config.baseApi
});
Vue.prototype.$config=config;
Vue.prototype.$request=request;
Vue.prototype.$utils=utils;

//用于配置是否在项目启动时生成提示信息
Vue.config.productionTip = false;

new Vue({
  router,//简写 相当于router:router
  //h代表createElement
  store,//注册store
  render: (h) => h(App),
}).$mount('#app');

